<template>
	<div>
		<topic :type="type" :tableData="tableData" @del="del" />
	</div>
</template>

<script>
import { getCheck, delQuestion } from '@/api/questions';
export default {
	name: 'questions_sh',
	data() {
		return {
			type: 1,
			tableData: []
		};
	},
	components: {},
	created() {
		this.getCheck()
	},
	activated() {
		this.getCheck()
	},
	methods: {
		async getCheck() {
			this.tableData = await getCheck({state: false})
		},
		async del(id) {
			await delQuestion(id)
			this.getCheck()
		}
	},
	computed: {},
	watch: {},
};
</script>

<style scoped></style>
